package com.albaba.designpattern.observer.text_002;

/**
 * @Description: 模拟买房摇号
 * @Author zx
 * @Date 2025/2/24 15:38
 * @Version 1.0
 */
public class DrawHouseService {

    // 摇号
    public String lots(String uId) {
        if (uId.hashCode() % 2 == 0) {
            return "恭喜ID为:" + uId + "摇号成功";
        } else {
            return "很遗憾ID为:" + uId + "摇号失败";
        }
    }
}
